package com.java.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.java.model.order.OrderCountQueryVo;
import com.java.model.order.OrderCountVo;
import com.java.model.order.OrderInfo;
import com.java.model.order.OrderQueryVo;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public interface OrderService extends IService<OrderInfo> {

    //下单
    Long saveOrder(String scheduleId, String patientId);

    //每天的下单次数
    Map<String,Object> getOrderList(OrderCountQueryVo orderCountQueryVo);

    //获取订单列表
    OrderInfo getOrders(String orderId);

    //查询分页
    IPage<OrderInfo> selectByPage(Page<OrderInfo> page, OrderQueryVo orderQueryVo,Long userId);

    //就诊提醒
    void patientTips();

    //取消订单
    Boolean cancelOrder(Long orderId);
}
